package com.qbccn.bbs.service;

import java.util.List;

/**
 * @author linke
 * @date 2020/7/31 22:25
 * @description
 */
public interface RedisService {
  /**
   * redis操作
   */
  public void set(String key, Object value, int seconds);
  public Object get(String key);
  public boolean delete(String key);

  //模糊查询
  List<Object> getByLike(String key);
  //模糊删除key 格式：key* 例如：key:*--key:123、key:abc 将被删除
  void likeDeleteKey(String keys);
}
